<template>
  <ul class="tb-right">
    <li>
      您好，<span>{{ user }}</span>
    </li>
    <li>退出</li>
    <li>我的订单</li>
    <li>我的消息</li>
    <li>我是商家</li>
    <li><i></i>400-800-8820</li>
  </ul>
</template>

<script>
export default {
  name: 'tbRight',
  data() {
    return {
      user: localStorage.getItem('userId'),
    };
  },
};
</script>

<style scoped>
.tb-right {
  display: flex;
}
.tb-right li {
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  color: #999;
  cursor: pointer;
  font-size: 14px;
}
.tb-right li span {
  color: #4b943d;
}
.tb-right li::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 12px;
  right: 0;
  top: 12px;
  background-color: #999;
}
.tb-right li:last-of-type:after,
.tb-right li:first-of-type:after {
  background-color: transparent;
}
.tb-right i {
  display: inline-block;
  width: 17px;
  height: 17px;
  background: url('./phone.png') no-repeat center;
  vertical-align: -2px;
  margin-right: 4px;
}
</style>
